Skip to content

fix dw prior and add test for execution - #43

Merged
kmdalton merged 1 commit into
mainfrom
dw_mvn
Feb 18, 2026
Merged

kmdalton merged 1 commit into
mainfrom
dw_mvn

Conversation

@kmdalton

@kmdalton kmdalton commented Feb 18, 2026 •

Copy link
Copy Markdown
Member

The main goal of this PR is to resurrect the multivariate wilson prior which was broken by changing the KL divergence calculation. This works the same way that the multivariate normal posterior was resurrected by flagging the posterior with surrogate_posterior.independent=False. To make this work nicely with the CLI, I changed independent to be set by the constructor rather than being a static attribute of the subclass. To debug this one, I found it helpful to add a --run-eagerly flag to abismal.cchalf and make it the default for testing. That leads to more helpful tracebacks when errors happen during cchalf.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.71429% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.09%. Comparing base (1948ead) to head (1c46e5f).

Files with missing lines Patch % Lines
abismal/prior/structure_factor/wilson.py 66.66% 1 Missing ⚠️
abismal/surrogate_posterior/surrogate_posterior.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #43      +/-   ##
==========================================
+ Coverage   69.87%   71.09%   +1.22%     
==========================================
  Files          84       84              
  Lines        3422     3425       +3     
==========================================
+ Hits         2391     2435      +44     
+ Misses       1031      990      -41     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@kmdalton
kmdalton merged commit aa39bd7 into main Feb 18, 2026
3 checks passed
@kmdalton
kmdalton deleted the dw_mvn branch February 18, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants